
/*
 * @Descripttion: baseUrl.js
 */
//请求地址配置
var baseUrl = function () {
    var self = {};
    //获取基础地址
    self.getBaseUrl = function () {
        var base_url = ''
        switch (process.env.NODE_ENV) {
            case 'development': //本地http://192.168.1.88:1717 
                base_url = "http://fls.xc4.gli.cn" //开发环境
                break
            case 'test': //http://fls.xc4.dev.igli.cn ||  http://fls.xc4.gli.cn
                base_url = "http://fls.xc4.gli.cn" //公测环境
                break
            case 'production': //线上 http://fls.igli.cn/fls || http://fls.xszkh5.ilawpress.com
                base_url = "http://fls.xc4.gli.cn" //最终上线环境
                break
        }
        return base_url;
    }

    return self;
}();

export {
    baseUrl
}